package com.traceability.dao;

import com.traceability.entity.Node;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface NodeMapper {

    @Select("select * from t_ts_node ")
    List<Node> selectByIds();

    void eventCreate(Node node);

    Node findNodeBytenantIdAndId(@Param("tenantId") String tenantId,
                                 @Param("id") String id);

    void nodeUpdate(Node node);
}
